<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
</block>
<block name="content" > 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <form class="Huiform" target="_self">
                        <div class="layui-inline">
                            <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Plan/index')}">返回</a>
                            <a class="btn btn-primary search" href="{:U('saveBackmenu')}"><i class="iconfont icon-zengjia1"></i> 添加菜单</a>
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="name" placeholder="菜单名" value="{$name}" class="layui-input search_input">
                        </div>
                        <div class="layui-input-inline">
                            <a class="layui-btn search_btn search" data-url="{:U('backmenu')}"> 查询</a>
                        </div>
                    </form>
                </blockquote>
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
                    <!-- 计划列表 -->
                    <div class="layui-tab-item layui-field-box layui-show">
                        <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                            <thead>
                            <th><input type="checkbox" name="" value=""></th>
                            <th>菜单名</th>
                            <th>上级菜单</th>
                            <th>路径</th>
                            <th>参数</th>
                            <th>排序</th>
                            <th>是否显示</th>
                            <th>导航名称</th>
                            <th>快速导航排序</th>
                            <th>操作</th>
                            </thead>
                            <tbody>
                            <notempty name="data">
                                <foreach name="data" item="row">
                                    <tr class="text-c">
                                        <td><input class="more" name="id[]" type="checkbox" value="{$row.flow_id}"></td>
                                        <td>{$row.name}</td>
                                        <td>{$row.pid|getBackmenuName}</td>
                                        <td>{$row.url}</td>
                                        <td>{$row.param}</td>
                                        <td>{$row.sort}</td>
                                        <td>{$row['is_show']?'是':'否'}</td>
                                        <td>{$row.nav_name}</td>
                                        <td>{$row.nav_no}</td>
                                        <td class="f-14 product-brand-manage">
                                            <a style="text-decoration:none" href="{:U('saveBackmenu',array('id'=>$row[id],'mid'=>$mid))}" title="编辑"><i class="iconfont icon-xiugai" style="font-size:16px;"> </i></a> 
                                            <a style="text-decoration:none" class="ml-5 delete" data-url="{:U('delete',array('id'=>$row['id'],'table'=>'backmenu'))}"  title="删除"><i class="iconfont icon-shanchu3" style="font-size:16px;"> </i></a>
                                        </td>
                                    </tr>
                                </foreach>
                                <else/>
                                <tr><td colspan="2" style="border-bottom: 1px solid #fff;border-left: 1px solid #fff;text-align: left">暂无数据</td></tr>
                            </notempty>
                            </tbody>
                        </table>
                        <div class="larry-table-page clearfix">
                            <!--<a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>-->
                            <div id="page" class="page">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/admin.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
    <script type="text/javascript">
        $(initFlow());
        $('.search').on('click', function () {
            $('form').submit();
        })
    </script>    
</block>